package de.hm.edu.oradb;

import java.sql.SQLException;
import java.util.ArrayList;

import de.hm.edu.cep.OrderEvent;

public interface IDbConnection {

	/**
	 * Inserts one OrderEvent
	 * @param e OrderEvent that will be stored in the Database
	 * @return DB return code
	 * @throws Exception
	 */
	public abstract int insertEvent(OrderEvent e) throws SQLException;

	/**
	 * Inserts one C2DM recipient
	 * @param registrationId The C2DM recipient registration id
	 * @return DB return code
	 * @throws SQLException
	 */
	public abstract int insertC2dmRecipient(String registrationId) throws SQLException;

	/**
	 * Selects all Recipients in the Database
	 * @return a Collection containing all recipients in the DB
	 * @throws SQLException
	 */
	public abstract ArrayList<String> getc2dmRecipients() throws SQLException;

}